package com.liu.decorator.impl;

import com.liu.component.Component;
import com.liu.decorator.Decorator;

public class DecoratorImpl extends Decorator {
    public DecoratorImpl(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedFunction();
    }

    public void addedFunction() {
        System.out.println("为具体构件角色增加额外的功能addedFunction()");
    }
}
